package bean;

import java.io.Writer;
import java.util.HashMap;
import java.util.Map;

public class Response {
	private String httpVersion;
	private String statusCode;
	private String status;
	private Map headerData;
	private String body;
	private Writer writer;
	public Response(){
		this.headerData=new HashMap();
	}
	
	public String getHttpVersion() {
		return httpVersion;
	}
	public void setHttpVersion(String httpVersion) {
		this.httpVersion = httpVersion;
	}
	public String getStatusCode() {
		return statusCode;
	}
	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public Object getHeader(String key){
		return headerData.get(key);
	}
	public void setHeader(String key, Object value) {
		this.headerData.put(key, value);
	}
	public String getBody() {
		return body;
	}
	public void setBody(String body) {
		this.body = body;
	}
	public Writer getWriter() {
		return writer;
	}
	public void setWriter(Writer writer) {
		this.writer = writer;
	}
	public Map getHeaderData() {
		return headerData;
	}
	public void setHeaderData(Map headerData) {
		this.headerData = headerData;
	}
	
}
